package com.ptszyxx.popose.module.main.mine.vm;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.ptszyxx.popose.common.constants.AppConstant;
import com.ptszyxx.popose.common.utils.YActivityUtil;
import com.ysg.base.BaseViewModel;
import com.ysg.binding.command.BindingCommand;
import com.ysg.bus.event.SingleLiveEvent;
import com.ysg.http.data.CommonRepository;

public class MineAgreementVM extends BaseViewModel<CommonRepository> {
    public ObservableField<String> name = new ObservableField<>();
    public ObservableField<String> code = new ObservableField<>();

    public MineAgreementVM(@NonNull Application application, CommonRepository model) {
        super(application, model);
    }

    public UIChangeObservable uc = new UIChangeObservable();
    public class UIChangeObservable {
        public SingleLiveEvent onRefreshNewEvent = new SingleLiveEvent<>();
    }

    public BindingCommand onAgreementCommand = new BindingCommand(()-> YActivityUtil.getInstance().jumpWeb(this, AppConstant.url_user_agreement));
    public BindingCommand onPrivacyCommand = new BindingCommand(()-> YActivityUtil.getInstance().jumpWeb(this, AppConstant.url_privacy_policy));

    //=========================================接口：start===========================================



}
